<%-- 
    Document   : list
    Created on : 2017-9-18, 17:39:52
    Author     : zhangwenbo
--%>
<%@page import="Model.Purchase.PurchaseListView"%>
<%@page import="Model.Supplier.SupplierExcellentView"%>
<%@page import="Model.Purchase.PurchaseList"%>
<%@page import="Model.Purchase.PurchaseMaterielListView"%>
<%@page import="RssEasy.Core.HttpRequestHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    HttpRequestHelper hrh = new HttpRequestHelper(pageContext).request();
    PurchaseListView pl = new PurchaseListView(pageContext);
    SupplierExcellentView sev = new SupplierExcellentView(pageContext);
%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>寻源项目详情及报名</title>
        <meta http-equiv="X-UA -Compatible" content="IE=edge">
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css"/>
        <link href="/css/swfupload.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/head.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/footer.css" rel="stylesheet" type="text/css"/>
        <link href="/purchase/css/details.css" rel="stylesheet" type="text/css"/>
        <link href="/source/css/details.css" rel="stylesheet" type="text/css"/>
        <link href="/purchase/css/alert.css" rel="stylesheet" type="text/css"/>
    </head>
    <body id="xunyuan">
        <%@include file="/inc/head.jsp"%>
        <h1 class="details_position w1000">当前位置：采购项目＞项目详情</h1>
        <div class="details_content w1000">
            <div class='purchase_details w1000'>
                <div class="details_title">
                    <%
                        pl.select().where("id=?", hrh.get("id")).get_first_rows();
                    %>
                    <h2><%=pl.get("name")%></h2>
                    <h3>发布时间&nbsp;<span rssdate="<%=pl.get("shijian")%>,yyyy-MM-dd hh:mm"></span></h3>
                </div>
                <div class="details_content1">
                    <h2>项目名称：<span><%=pl.get("name")%></span></h2>
                    <h2>项目类型：<span purchase="<%=pl.get("purchase_class")%>"></span></h2>
                    <h2>产品类别：<span><%=pl.get("business_class")%></span></h2>
                    <h3>截止时间：<span rssdate="<%=pl.get("enddt")%>,yyyy-MM-dd"></span></h3>
                </div>
                <h2>供应商资格要求：</h2>
                <p name="<%=hrh.get("id")%>"><%=pl.get("conditions")%></p>
                <h2>内容公告：</h2>
                <p class="details_p" ><%=pl.get("summary")%></p>
            </div>
            <div class='latest'>
                <h1>最新发布</h1>
                <ol>
                    <%
                        pl.pagesize = 5;
                        pl.select("id,name,shijian").where("state=1 and typid=2").get_page_desc("id");
                        while (pl.for_in_rows()) {
                    %>
                    <li><img src="/purchase/img/purchase_create_list1.jpg" alt=""/><a href='/source/details/<%=pl.get("id")%>' title="<%=pl.get("name")%>"><%=pl.get("name")%></a><span rssdate='<%=pl.get("shijian")%>,yyyy-MM-dd'></span></li>
                            <%
                                }
                            %>
                </ol> 
            </div>
            <div class="right2">
                <h1>优秀供应商排行榜</h1>
                <ol>
                    <%
                        sev.request();
                        sev.pagesize = 10;
                        sev.select("myid,corpname").get_page_desc("rank");
                        int n = 1;
                        while (sev.for_in_rows()) {
                    %>
                    <li><div class="purchase_create_right2_color<%out.print(n);%>"><%out.print(n);%></div><a href="/supplier/home/<%=sev.get("myid")%>" title="<%=sev.get("corpname")%>"><%=sev.get("corpname")%></a></li>
                            <%
                                    n += 1;
                                }
                            %>
                </ol>
            </div>
            <form id="source" action="/source/details_back" method="get">
                <input type="hidden" name="purchaseid" value="<%=hrh.get("id")%>">
                <div id="apply">
                    <h2>报名信息</h2>
                    <table class="cellbor" id="table2">
                        <tr><td class="w90">公司名称：</td><td><input type="text" name="corpname" id="corpname" maxlength="20" placeholder="输入公司名称"><label for="corpname"></label></td></tr>
                        <tr><td class="w90">联系人：</td><td><input type="text" name="linkname" id="linkname" maxlength="8" placeholder="输入联系人姓名"><label for="linkname"></label></td></tr>
                        <tr><td class="w90">联系电话：</td><td><input type="text" name="phone" id="phone" maxlength="20" placeholder="输入联系电话"><label for="phone"></label></td></tr>
                    </table>
                </div>
                <div class="applyposition">
                    <button type="button"  class="applybutn w1000">报名</button>
                </div>
            </form>
        </div>
        <%@include file="/inc/footer.jsp"%>
        <%@include file="/inc/js_all.html" %>
        <script src="/purchase/js/alert.js" type="text/javascript"></script>
        <script src="/js/calendar.min.js" type="text/javascript"></script>
        <script src="/purchase/js/details.js" type="text/javascript"></script>
        <script src="/purchase/js/dictdata.js" type="text/javascript"></script>
        <script src="/source/js/details.js" type="text/javascript"></script>
    </body>
</html>

